package icu.javacg.storage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import icu.javacg.storage.pojo.Warehouse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author sky
* @description 针对表【warehouse(仓库表)】的数据库操作Service
* @createDate 2023-04-25 08:42:54
*/
public interface WarehouseService extends IService<Warehouse> {

    //'仓库编号','仓库名称','仓库管理员','最大容量（立方米）','存储类型'/
    Page<Warehouse> MybatisPlugin(int a,int b);//分页查询
    int insert(Warehouse w);//添加仓库
    List<Warehouse> listnull();//查看空厂库

    int delete(int id);//根据id删除厂库

    List<Warehouse> selectMax();//查看容积最大的仓库

    List<Warehouse> selcetName(String name);
//
    int updataWarehouse(Warehouse w);

    ///////////////////////////////////
    List<Warehouse> selectAll();

}
